<!DOCTYPE html>
<html>
    <head>
        <title>原生js验证</title>
        <meta charset="utf-8"/>
    </head>


    <body>
        <ul id="myul">
            <li>春天</li>
        </ul>
        
    </body>
    <script>
let arr=["春","夏","秋","冬"]
//首先获取ul元素
const myul =document.getElementById("myul");
//循环创建li标签
for (let i = 0; i < arr.length; i++) {
    const myli = document.createElement("li");
   
    //将数据追加到li标签中
    myli.innerHTML=arr[i];

     //将li添加到ul当中
     myul.appendChild(myli)
}



    </script>
</html>